<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8" isELIgnored="false"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Update Food Info</title>
<link rel="stylesheet" type="text/css" href="foodupdate.css" />

</head>
<body>

	<div id="content">
		<div class="header">
			<h2 style="color: cadetblue;">Update food info</h2>
		</div>
		<form action="updatefood" method="post" enctype="multipart/form-data">
			<input type="hidden" name="fid" value="${f.fid }" placeholder="Food Name"/>
			<p>
				<input type="text" name="fname" value="${f.fname }" placeholder="Food Name" />
			</p>
			<p>
				<select name="ftype"  value="${f.ftype }" palceholder="Choose food type">
					<option value="1">Drinks</option>
  					<option value="2">Staple food</option>
  					<option value="3">Snack</option>
 					<option value="4">Combo</option>
				</select>
			</p>
			<p>
				<input type="text" name="fprice"  value="${f.fprice }" placeholder="Food Price" />
			</p>
			<p style="margin-left: 30px; font-size: larger;">
				<span style="font-size: smaller; padding-left: 20px;color: #4a4744;">Upload
					Food Image</span><input type="file" name="fimage"
					placeholder="Upload Food Image"
					style="width: 180px; margin-left: 5px;" />
			</p>
			<div id="add-button-box">
				<input type="submit" value="Submit" />
			</div>
			<div id="back-box">
				<a href="back">Back</a>
			</div>
		</form>
	</div>



</body>
</html>